$(document).ready(function () {
    console.log($(location).attr('href'));
});